package lzzy.edu.cn.demothymeleaf.service;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

import java.time.LocalDateTime;

@Service
public class TimeService {
    @Scheduled(cron = "0/5 * * * * ?")
    public void schedule() {
        System.out.println(LocalDateTime.now());
    }
}
